<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>06_js函数</title>
</head>
<body>
<script>
  function  f1(){
    console.log("f1被调用了");
  }
  f1();
  f1();
  function  f2(n){
    console.log("f2被调用了");
    console.log(n);
  }
  f2(1);
  f2(3);
  function  f3(a,b){
    console.log("f3被调用了");
    console.log(a+b);
  }
  f3();
  f3(1,4);
  f3(1,3,5);
  f3(1);
  function  f4(a,b){
    console.log("f4被调用了");
    let c=a*b;
    return c;
  }
  f4(3,4);
  console.log(f4(3,4));
  // console.log(c);
  var f5=function(){
    console.log("匿名函数被调用了");

  }
  f5();
  console.log(f5);
  console.log(typeof f5);
  const f6 = () => {
    console.log("箭头函数被调用了");

  };
  f6();
  console.log(f6);
  console.log(typeof f6);

</script>

</body>
</html>